﻿<%@ page language="C#" masterpagefile="Manage.master" autoeventwireup="true" inherits="Third_Manage_ProductInformation, App_Web_x1yzsqrv" title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderManage" Runat="Server">

<div class="titlePageManage">编辑应用信息</div>


<form runat="server" class="formMarginManage">
    
    
    <asp:DataList ID="DataList2" runat="server" CssClass="tableMarginManage" DataKeyField="s_id" 
        oncancelcommand="DataList1_CancelCommand" 
        ondeletecommand="DataList1_DeleteCommand" oneditcommand="DataList1_EditCommand" 
        onupdatecommand="DataList1_UpdateCommand" 
        onitemcommand="DataList1_ItemCommand" 
        onitemdatabound="DataList1_ItemDataBound">
        <HeaderTemplate>
                <span class="titleTable">应用名称</span></td>
            <td><span class="titleTable">简要描述</span></td>
            <td><span class="titleTable">图片描述</span></td>
            <td><span class="titleTable">价格</span></td>
            <td><span class="titleTable">发布时间</span></td>
            <td><span class="titleTable">状态</span></td>
            <td colspan="3" align="center"><span class="titleTable">操作</span>
        </HeaderTemplate>
        <ItemTemplate>
            <asp:HiddenField ID="key" Value='<%# Eval("s_id") %>' runat="server" />
            <asp:Label ID="lblname" Text='<%# Eval("s_name") %>' runat="server"></asp:Label></td>
            <td><asp:Label ID="lblword" Text='<%# Eval("s_word") %>' runat="server"></asp:Label></td>
            <td><asp:Image ID="image" CssClass="imageProduct" ImageUrl='<%# Eval("s_image") %>' runat="server"/></td>
            <td><asp:Label ID="lblprice" Text='<%# Eval("s_price") %>' runat="server"></asp:Label></td>
            <td><asp:Label ID="lbltime" Text='<%# Eval("s_time") %>' runat="server"></asp:Label></td>
            <td><asp:Label ID="lblstate" Text='<%# Eval("s_state") %>' runat="server"></asp:Label>
            <td><asp:LinkButton ID="edit" Text="编辑" CommandName="edit" runat="server"></asp:LinkButton></td>
            <td><asp:LinkButton ID="delete" Text="删除" CommandName="delete" OnClientClick="javasrcipt:return confirm('确定要删除吗？');" runat="server"></asp:LinkButton></td>
            <td><asp:LinkButton ID="down" Text="取消上线" CommandName="down" runat="server"></asp:LinkButton>
        </ItemTemplate>
        <EditItemTemplate>
            <asp:Textbox ID="name" Text='<%# Eval("s_name") %>' runat="server"></asp:Textbox></td>
            <td><asp:Textbox ID="word" Text='<%# Eval("s_word") %>' runat="server"></asp:Textbox></td>
            <td><asp:FileUpload ID="upload" runat="server" /></td>
            <td><asp:Textbox ID="price" Text='<%# Eval("s_price") %>' runat="server"></asp:Textbox></td>
            <td></td>
            <td></td>
            <td><asp:LinkButton ID="update" Text="更新" CommandName="update" runat="server"></asp:LinkButton></td>
            <td><asp:LinkButton ID="cancel" Text="取消" CommandName="cancel" runat="server"></asp:LinkButton></td>
        </EditItemTemplate>
    </asp:DataList>





        <asp:DataList ID="DataList1" runat="server" CssClass="tableMarginManage" DataKeyField="s_id" 
        oncancelcommand="DataList1_CancelCommand" 
        ondeletecommand="DataList1_DeleteCommand" oneditcommand="DataList1_EditCommand" 
        onupdatecommand="DataList1_UpdateCommand" 
        onitemcommand="DataList1_ItemCommand" 
        onitemdatabound="DataList1_ItemDataBound">
        <ItemTemplate><td></tr>
        
        <tr>
    <td rowspan="2" class="tdImageProduct">
              <asp:HiddenField ID="key" Value='<%# Eval("s_id") %>' runat="server" />
              <asp:Image ID="image" CssClass="imageProduct" ImageUrl='<%# Eval("s_image") %>' runat="server"/></td>
    <td rowspan="3" style=" width:200px;">
        <div><asp:Label ID="lblname" Text='<%# Eval("s_name") %>' runat="server" CssClass="titleProduct"></asp:Label></div>
        <div><asp:Label ID="lblword" Text='<%# Eval("s_word") %>' runat="server"></asp:Label></div></td>
    <td rowspan="2" style=" width:150px;"><span class="titleProduct">状态：</span><asp:Label ID="lblstate" Text='<%# Eval("s_state") %>' runat="server"></asp:Label></td>
    <td style=" width:100px;"><asp:LinkButton ID="edit" Text="编辑" CommandName="edit" runat="server" CssClass="titleProduct"></asp:LinkButton></td>
  </tr>
  <tr>
    <td style=" text-align:center;"><asp:LinkButton ID="delete" Text="删除" CommandName="delete" OnClientClick="javasrcipt:return confirm('确定要删除吗？');" runat="server" CssClass="titleProduct"></asp:LinkButton></td>
  </tr>
  <tr>
    <td><span style=" color:#993333;">发布时间：<asp:Label ID="lbltime" Text='<%# Eval("s_time") %>' runat="server"></asp:Label></span></td>
    <td><span style=" color:#993333;">价格：￥</span><asp:Label ID="lblprice" Text='<%# Eval("s_price") %>' runat="server"></asp:Label></td>
    <td style=" text-align:right;"><asp:LinkButton ID="down" Text="取消上线" CommandName="down" runat="server" CssClass="titleProduct"></asp:LinkButton>


        </ItemTemplate>
        <EditItemTemplate><td></tr>

  <tr>
    <td>
        <div><span class="titleProduct">请选择图片：</span></div>
        <div><asp:FileUpload ID="upload" runat="server" /></div></td>
    <td rowspan="2">
        <div><span class="titleProduct">请输入简述：</span></div>
        <div><asp:Textbox ID="word" Text='<%# Eval("s_word") %>' runat="server" TextMode="MultiLine" Height="90px"></asp:Textbox></div></td>
    <td rowspan="2">
        <div><span class="titleProduct">请输入价格：￥</span></div>
        <div><asp:Textbox ID="price" Text='<%# Eval("s_price") %>' runat="server"></asp:Textbox></div></td>
    <td style=" text-align:right;"><asp:LinkButton ID="update" Text="更新" CommandName="update" runat="server" CssClass="titleProduct"></asp:LinkButton></td>
  </tr>
  <tr>
    <td>
        <div><span class="titleProduct">请输入应用名称：</span></div>
        <div><asp:Textbox ID="name" Text='<%# Eval("s_name") %>' runat="server"></asp:Textbox></div></td>
    <td style=" text-align:right;"><asp:LinkButton ID="cancel" Text="取消" CommandName="cancel" runat="server" CssClass="titleProduct"></asp:LinkButton>




        </EditItemTemplate>
    </asp:DataList>






当前：第<asp:Label ID="lblCurrentPage" runat="server" Text="1"></asp:Label>页
                <asp:LinkButton ID="lblFirstPage" runat="server" Text="首页" OnClick="lblFirstPage_Click"></asp:LinkButton>
                <asp:LinkButton ID="lblFrontPage" runat="server" Text="上一页" OnClick="lblFrontPage_Click"></asp:LinkButton>
                <asp:LinkButton ID="lblNextPage" runat="server" Text="下一页" OnClick="lblNextPage_Click"></asp:LinkButton>
                <asp:LinkButton ID="lblLastPage" runat="server" Text="末页" OnClick="lblLastPage_Click"></asp:LinkButton>
                总共<asp:Label ID="lblTotalPage" runat="server" ></asp:Label>页
    
    </form>
</asp:Content>

